# Contributor: Adam Plumb <adamplumb@gmail.com>
# Maintainer: Adam Plumb <adamplumb@gmail.com>
pkgname=headlines
pkgver=0.7.1
pkgrel=0
pkgdesc="GTK4 Reddit client written in C++"
url="https://gitlab.com/caveman250/Headlines"
arch="all !s390x !riscv64"
license="GPL-3.0-only"
depends="
	ffmpeg
	gst-plugins-bad
	gst-plugins-base
	gst-plugins-good
	youtube-dl
	"
makedepends="
	boost-dev
	cmake
	curl-dev
	gtkmm4-dev
	jsoncpp-dev
	libadwaita-dev
	libmicrohttpd-dev
	libsecret-dev
	openssl-dev
	samurai
	websocket++
	"
source="$pkgname-$pkgver-2.tar.gz::https://gitlab.com/caveman250/Headlines/-/archive/$pkgver/Headlines-$pkgver.tar.gz"
builddir="$srcdir/Headlines-$pkgver"
options="!check"

build() {
	cmake -B build -G Ninja \
		-DDIST_BUILD=ON \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="
0ea934de778f4047a7c4f9d0b96ddfd7461eaba5ae5b498c4e10934415970dba4fd28d1e14a9cb7c4d25c0124cd278bdfa884801070afb00134bddb59e1a4051  headlines-0.7.1-2.tar.gz
"
